package com.pyb.service.Impl;

import com.pyb.dao.AccountDao;
import com.pyb.pojo.Account;
import com.pyb.pojo.R;
import com.pyb.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/1/17 11:06
 * @注释
 */
@Service
public class AccountImpl implements AccountService {
    @Autowired
    private AccountDao accountDao;
    @Override
    public R<List<Account>> findAllAcount() {
        R r=new R();
        List<Account>accounts=accountDao.accounts();
        r.setCode(200);
        r.setMess("獲取成功");
        r.setDate(accounts);
        return r;
    }
}
